import request from '../Request'

// 文章评论功能
// export function commupAPI(content, nackname, date, link, headimg) {
//     return request.post(`/api/comm`, { content, nackname, date, link, headimg })
// }
//文章状态修改
export const commputAPI = (id: number, status: any) => {
  return request.put(`/api/comm`, { id, status })
}
// 评论列表
export const commlistAPI = () => {
  return request.get(`/api/comm`)
}

// 评论删除
export const commdelAPI = (id: number) => {
  return request.delete(`/api/comm`, { data: { id } })
}